Summary of Style Objects
C Summary
Constants
typedef enum TQ3BackfacingStyle { kQ3BackfacingStyleBoth, kQ3BackfacingStyleRemove, kQ3BackfacingStyleFlip } TQ3BackfacingStyle; typedef enum TQ3InterpolationStyle { kQ3InterpolationStyleNone, kQ3InterpolationStyleVertex, kQ3InterpolationStylePixel } TQ3InterpolationStyle; typedef enum TQ3FillStyle { kQ3FillStyleFilled, kQ3FillStyleEdges, kQ3FillStylePoints } TQ3FillStyle; typedef enum TQ3SubdivisionMethod { kQ3SubdivisionMethodConstant, kQ3SubdivisionMethodWorldSpace, kQ3SubdivisionMethodScreenSpace } TQ3SubdivisionMethod; typedef enum TQ3OrientationStyle { kQ3OrientationStyleCounterClockwise, kQ3OrientationStyleClockwise } TQ3OrientationStyle; #define kQ3StyleTypeBackfacing Q3_OBJECT_TYPE('b','c','k','f') #define kQ3StyleTypeFill Q3_OBJECT_TYPE('f','i','s','t') #define kQ3StyleTypeHighlight Q3_OBJECT_TYPE('h','i','g','h') #define kQ3StyleTypeInterpolation Q3_OBJECT_TYPE('i','n','t','p') #define kQ3StyleTypeOrientation Q3_OBJECT_TYPE('o','f','d','r') #define kQ3StyleTypePickID Q3_OBJECT_TYPE('p','k','i','d') #define kQ3StyleTypePickParts Q3_OBJECT_TYPE('p','k','p','t') #define kQ3StyleTypeReceiveShadows Q3_OBJECT_TYPE('r','c','s','h') #define kQ3StyleTypeSubdivision Q3_OBJECT_TYPE('s','b','d','v')Data Types
typedef struct TQ3SubdivisionStyleData { TQ3SubdivisionMethod method; float c1; float c2; } TQ3SubdivisionStyleData;Style Objects Routines
Managing Styles
TQ3ObjectType Q3Style_GetType(TQ3StyleObject style); TQ3Status Q3Style_Submit(TQ3StyleObject style, TQ3ViewObject view);Managing Backfacing Styles
TQ3StyleObject Q3BackfacingStyle_New ( TQ3BackfacingStyle backfacingStyle); TQ3Status Q3BackfacingStyle_Submit ( TQ3BackfacingStyle backfacingStyle, TQ3ViewObject view); TQ3Status Q3BackfacingStyle_Get ( TQ3StyleObject backfacingObject, TQ3BackfacingStyle *backfacingStyle); TQ3Status Q3BackfacingStyle_Set ( TQ3StyleObject backfacingObject, TQ3BackfacingStyle backfacingStyle);Managing Interpolation Styles
TQ3StyleObject Q3InterpolationStyle_New ( TQ3InterpolationStyle interpolationStyle); TQ3Status Q3InterpolationStyle_Submit ( TQ3InterpolationStyle interpolationStyle, TQ3ViewObject view); TQ3Status Q3InterpolationStyle_Get ( TQ3StyleObject interpolationObject, TQ3InterpolationStyle *interpolationStyle); TQ3Status Q3InterpolationStyle_Set ( TQ3StyleObject interpolationObject, TQ3InterpolationStyle interpolationStyle);Managing Fill Styles
TQ3StyleObject Q3FillStyle_New(TQ3FillStyle fillStyle); TQ3Status Q3FillStyle_Submit(TQ3FillStyle fillStyle, TQ3ViewObject view); TQ3Status Q3FillStyle_Get(TQ3StyleObject styleObject, TQ3FillStyle *fillStyle); TQ3Status Q3FillStyle_Set(TQ3StyleObject styleObject, TQ3FillStyle fillStyle);Managing Highlight Styles
TQ3StyleObject Q3HighlightStyle_New ( TQ3AttributeSet highlightAttribute); TQ3Status Q3HighlightStyle_Submit ( TQ3AttributeSet highlightAttribute, TQ3ViewObject view); TQ3Status Q3HighlightStyle_Get(TQ3StyleObject highlight, TQ3AttributeSet *highlightAttribute); TQ3Status Q3HighlightStyle_Set(TQ3StyleObject highlight, TQ3AttributeSet highlightAttribute);Managing Subdivision Styles
TQ3StyleObject Q3SubdivisionStyle_New ( const TQ3SubdivisionStyleData *data); TQ3Status Q3SubdivisionStyle_Submit ( const TQ3SubdivisionStyleData *data, TQ3ViewObject view); TQ3Status Q3SubdivisionStyle_GetData ( TQ3StyleObject subdiv, TQ3SubdivisionStyleData *data); TQ3Status Q3SubdivisionStyle_SetData ( TQ3StyleObject subdiv, const TQ3SubdivisionStyleData *data);Managing Orientation Styles
TQ3StyleObject Q3OrientationStyle_New ( TQ3OrientationStyle frontFacingDirection); TQ3Status Q3OrientationStyle_Submit ( TQ3OrientationStyle frontFacingDirection, TQ3ViewObject view); TQ3Status Q3OrientationStyle_Get ( TQ3StyleObject frontFacingDirectionObject, TQ3OrientationStyle *frontFacingDirection); TQ3Status Q3OrientationStyle_Set ( TQ3StyleObject frontFacingDirectionObject, TQ3OrientationStyle frontFacingDirection);Managing Shadow-Receiving Styles
TQ3StyleObject Q3ReceiveShadowsStyle_New ( TQ3Boolean receives); TQ3Status Q3ReceiveShadowsStyle_Submit ( TQ3Boolean receives, TQ3ViewObject view); TQ3Status Q3ReceiveShadowsStyle_Get ( TQ3StyleObject styleObject, TQ3Boolean *receives); TQ3Status Q3ReceiveShadowsStyle_Set ( TQ3StyleObject styleObject, TQ3Boolean receives);Managing Picking ID Styles
TQ3StyleObject Q3PickIDStyle_New ( unsigned long id); TQ3Status Q3PickIDStyle_Submit(unsigned long id, TQ3ViewObject view); TQ3Status Q3PickIDStyle_Get(TQ3StyleObject pickIDObject, unsigned long *id); TQ3Status Q3PickIDStyle_Set(TQ3StyleObject pickIDObject, unsigned long id);Managing Picking Parts Styles
TQ3StyleObject Q3PickPartsStyle_New ( TQ3PickParts parts); TQ3Status Q3PickPartsStyle_Submit ( TQ3PickParts parts, TQ3ViewObject view); TQ3Status Q3PickPartsStyle_Get(TQ3StyleObject pickPartsObject, TQ3PickParts *parts); TQ3Status Q3PickPartsStyle_Set(TQ3StyleObject pickPartsObject, TQ3PickParts parts);